package com.itheima.controller;

import com.itheima.manager.SmsCouponHistoryManager;
import com.itheima.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SmsCouponHistoryController {
    @Autowired
    SmsCouponHistoryManager smsCouponHistoryManager;

    //优惠券领取记录
    @GetMapping("/couponHistory/list")
    public Result list(Integer pageNum, Integer pageSize, Long couponId, String orderSn, Integer useStatus){
        return smsCouponHistoryManager.list(pageNum,pageSize,couponId,orderSn,useStatus);
    }
}
